import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import VueAxios from "vue-axios";
import ElementUI from "element-ui"; //引入element ui
import "element-ui/lib/theme-chalk/index.css"; //引入element ui
// 引入富文本组件
import QuillEditor from "vue-quill-editor";
// 引入富文本组件样式
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
// 引入axios
import axiosApi from "./api/axios";

// VueAxios 与 axios 的位置不能交换，否则出现 TypeError: Cannot read property 'protocol' of undefined
Vue.use(VueAxios, axios);
Vue.use(ElementUI); //引入element ui
Vue.config.productionTip = false;
Vue.use(QuillEditor);
Vue.use(axiosApi);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
